<?php
header("Content-Type:text/html;charset=utf-8");
include 'includes/init.php';
$u=isset($_POST['u'])?$_POST['u']:'';
$p=isset($_POST['p'])?$_POST['p']:'';
$flg=isset($_POST['flg'])?$_POST['flg']:'';
if ($flg==1) {
	$sql="select * from t_member where phone='{$u}' or email='{$u}'";
	$admin=$db_Obj->getone($sql);
	if (!empty($admin)) {
		
		echo '<img src="image/check_right.gif">';
	}
	else{
		
		echo '<img src="image/check_error.gif">';
	}
}
else {

	$sql="select * from t_member where (phone='{$u}' or email='{$u}') and passwords='{$p}'";
	$admin=$db_Obj->getone($sql);
	if (!empty($admin)) {
		
		echo '<img src="image/check_right.gif">';
	}
	else{
		
		echo '<img src="image/check_error.gif">';
	}
}






?>